cmake_minimum_required( VERSION 3.10)

project(media)

##################YUV AND RGB
set(YUVANDRGB "yuvAndRGB")

add_executable(yuv1 ${YUVANDRGB}/yuv1.c)
add_executable(yuv2 ${YUVANDRGB}/yuv2.c)
add_executable(yuv3 ${YUVANDRGB}/yuv3.c)
add_executable(yuv4 ${YUVANDRGB}/yuv4.c)
add_executable(yuv5 ${YUVANDRGB}/yuv5.c)
add_executable(yuv6 ${YUVANDRGB}/yuv6.c)
add_executable(yuv7 ${YUVANDRGB}/yuv7.c)

add_executable(rgb1 ${YUVANDRGB}/rgb1.c)
add_executable(rgb3 ${YUVANDRGB}/rgb3.c)

include_directories(${YUVANDRGB}/libbmp)#将指定目录添加到编译器的头文件搜索路径之下，指定的目录被解释成当前源码路径的相对路径。

add_executable(rainbow_rgb ${YUVANDRGB}/other/rgb1.c)
add_executable(rainbow_rgb_bitMap ${YUVANDRGB}/other/rgb2.c)
add_executable(rainbow_rgb_bitMap_711 ${YUVANDRGB}/other/rgb3.c)
add_executable(rainbow_rgb_bitMap_open  ${YUVANDRGB}/libbmp/libbmp.h ${YUVANDRGB}/libbmp/libbmp.c ${YUVANDRGB}/other/rgb4.c)

##################END



##################PCM

set(PCM "pcm")
add_executable(pcm1 ${PCM}/pcm1.c)


##################END
